package com.bbcare.nutritious.plat.service;

import java.util.List;
import java.util.Map;

/**
 * 
 * @name:         INutritionSchemeService.java
 * @author:       tao
 * @createTime:   2017年7月3日
 * @description:  营养方案服务接口类
 * @modify:
 *
 */
public interface INutritionSchemeService {
	
	//营养方案使用(从数据库读取方案)
    Map<String, Object> patientSchemeUsed(Map<String, Object> map)throws Exception;
    
    //营养方案使用 从缓存中读取方案
    Map<String, Object> patientSchemeUsedCache(Map<String, Object> map)throws Exception;
    
    //营养方案应用详情查看
    Map<String, Object> patientSchemeDetail(Map<String, Object> map)throws Exception;
    
    //疗程详情查询
    Map<String, Object> patientCourseDetail(Map<String, Object> map)throws Exception;
    
    //疗程开始时间设置
    Map<String, Object> patientCourseStartDaySet(Map<String, Object> map)throws Exception;
    
    //修改饮食情况数据 //支持批量
    Map<String,Object> patientSituationModify(Map<String, Object> map)throws Exception;
    
    //饮食情况修改记录查询
    List<Map<String, Object>> patientSituationModifyHis(Map<String, Object> map)throws Exception;
    
    //营养方案停止
    Map<String,Object> patientSchemeStop(Map<String, Object> map)throws Exception;
    
    //营养方案阶段启用
    Map<String,Object> patientStageUsed(Map<String, Object> map)throws Exception;
  
    //营养方案变更
    Map<String,Object> patientSchemeChange(Map<String, Object> map)throws Exception;
    
    //患者营养方案记录查询
    List<Map<String,Object>> patientSchemeList(Map<String, Object> map)throws Exception;
    
    //患者营养方案记录总数
    int patientSchemeCount(Map<String, Object> map)throws Exception;
    
    //查询方案列表
    List<Map<String,Object>> schemeListQry(Map<String,Object> map) throws Exception ;
    
    //查询方案总数
    int CountSchemeListQry(Map<String,Object> map) throws Exception ;
    
    //疗程停止
    Map<String, Object> patientCourseStop(Map<String, Object> map)throws Exception;
    
    //方案应用统计数据
    Map<String, Object> getStatisticsData(Map<String, Object> map)throws Exception;
    
    //计划量上传
    Map<String, Object> patientScheduleUpload(Map<String, Object> map)throws Exception;
    
    //计划量查询
    Map<String,Object> patientScheduleQry(Map<String, Object> map)throws Exception;
    /**
     *  通过分类查询食物列表 
     * @param map
     * @return
     * @throws Exception 
     */
	Map<String, Object> listFoodByType(Map<String, Object> map) throws Exception;
    
}
